package com.campus.counseling.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.time.LocalDateTime;

@Data
@TableName("counselor_info")
public class Counselor {
    // 状态常量
    public static final String STATUS_PENDING = "PENDING";
    public static final String STATUS_APPROVED = "APPROVED";
    public static final String STATUS_REJECTED = "REJECTED";
    
    @TableId(type = IdType.AUTO)
    private Long id;
    
    private Long userId;
    private String realName;
    private String title;
    private String specialty;
    private String introduction;
    private String qualification;
    private Integer workYears;
    private Double rating;
    private Integer consultationCount;
    private String status;
    private LocalDateTime reviewTime;
    private Long reviewerId;
    private String reviewNote;
    private String certificateNo;
    private String certificateUrl;
    private String username;
    private String password;
    private String phone;
    private String email;
    
    @TableLogic
    private Integer deleted;
    
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    
    @TableField(exist = false)
    private String reviewerName;
} 